<!DOCTYPE html>
<html>
<#include "../head.html">
    <body class="full">
    <div class="mc">
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "leftFromYyToCf.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->

                <!--面包屑导航---{-->
                <#assign moduleName="注册用户">
                    <#include "banner.html">
                        <!--面包屑导航---}-->

                        <!--工具栏--{-->
                        <div id="toolbar" class="clearfix">
                            <div class="toolbor-module export">
                                <input type="button" onclick="exportxls()" value="导出列表" class="input-button export-btn"/>
                            </div>
                            <div class="toolbor-module export">
                                <div style="height:22px;line-height:22px;float:left;color:red;margin-left:12px;"> 注册用户数：${(num?c)!0} </div>
                            </div>

                            <div class="toolbor-module search">
                                <input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                            </div>

                            <div class="toolbor-module search">
                                <div class="formTit">实名状态：</div>
                                <div class="select-box" id="realStatus">
                                    <div class="tag-select">全部</div>
                                    <ul class="tag-options">
                                        <li data-value="">全  部</li>
                                        <li data-value="0">未认证</li>
                                        <li data-value="1">认证</li>
                                    </ul>
                                </div>
                            </div>

                            <div class="toolbor-module search">
                                <div class="formTit">来源：</div>
                                <div class="select-box" id="sourceType">
                                    <div class="tag-select">全部</div>
                                    <ul class="tag-options">
                                        <li data-value="">全  部</li>
                                        <li data-value="0">PC</li>
                                        <li data-value="1">APP</li>
                                        <li data-value="23">IOS</li>
                                        <li data-value="24">安卓</li>
                                    </ul>
                                </div>
                            </div>


                            <div class="toolbor-module search">
                                <div class="formTit">用户名：</div>
                                <input type="hidden" name="types" value="user" />
                                <input type="text" name="username" id="username" value="请输入用户名" class="search-value">
                                <div class="formTit">真实姓名：</div>
                                <input type="text" name="realname" id="realname" value="请输入真实姓名" class="search-value">
                                <div class="formTit">邮箱：</div>
                                <input type="text" name="email" id="email" value="请输入邮箱" class="search-value">
                                <div class="formTit">手机：</div>
                                <input type="text" name="phone" id="phone" value="请输入手机" class="search-value">


                            </div>
                            <div class="toolbor-module search" style="clean:right;margin-right:125px">
                                <div class="formTit">注册时间：</div>
                                <input class="_search-value" name="startDate" id="startDate" value="" onclick="change_picktime()"/>
                                <div style="height:22px;line-height:22px;float:left;margin:0 8px;"> 到 </div>
                                <input class="_search-value" name="endDate" id="endDate" value=""  onclick="change_picktime()"/>
                            </div>
                        </div>
                        <!--工具栏--}-->

                        <div id="main" class="clearfix">
                            <form action="" method="post">
                                <table class="data-list">
                                    <tr class="header">
                                        <td>ID</td>
                                        <td>用户名</td>
                                        <td>真实姓名</td>
                                        <!-- <td>性别</td> -->
                                        <td>邮箱</td>
                                        <td>手机</td>
                                        <!-- <td>所在地</td> -->
                                        <td>注册ip</td>
                                        <td>注册时间</td>
                                        <td>来源</td>
                                        <td>渠道来源</td>
                                        <td>实名认证</td>
                                        <!-- <td>理财经理</td> -->
                                        <td>状态</td>
                                    </tr>
                                    <#if list?? && (list?size > 0)>
                                        <#list list as obj>
                                            <tr class="s">
                                                <td>${(obj.userId?c)!0}</td>
                                                <td>${obj.userName!''}</td>
                                                <td>${obj.realName!''}</td>
                                                <!-- <td><#if obj.sex??><#if obj.sex==1>男<#elseif obj.sex==2>女<#else>保密</#if></#if></td> -->
                                                <td>${obj.email!''}</td>
                                                <td >${obj.phone!''}</td>
                                                <!--   <td ><#if obj.province??>
                                                      ${obj.province} - <#else> - </#if> <#if obj.city??>
                                                      ${obj.city} - <#else> - </#if> <#if obj.area??>
                                                      ${obj.area} <#else> - </#if></td> -->
                                                <td >${obj.addIp!''}</td>
                                                <td><#if obj.addTime??>${obj.addTime?string('yyyy-MM-dd HH:mm:ss')}</#if></td>
                                                <td>
                                                    <#if obj.sourceType==23>
                                                        IOS
                                                        <#elseif obj.sourceType==24>
                                                            安卓
                                                            <#elseif obj.sourceType==1>
                                                                APP
                                                                <#else>
                                                                    PC
                                                    </#if>
                                                </td>
                                                <td>${obj.sourceFrom!'-'}</td>
                                                <td><#if obj.realStatus==1>认证<#else><a href="/admin/operate/manualRealName.html?userId=${obj.userId?c}">未认证</a></#if></td>
                                                <#-- <td><@wealthManager id="${obj.userId?c}"></@wealthManager></td> -->
                                            <td><#if obj.status??><#if
                                                    obj.status==0>关闭<#else>开通</#if><#else>-</#if>
                                            </td>
                                            </tr>
                                        </#list>
                                    </#if>
                                </table>
                            </form>

                            <!--底部工具栏--{-->
                            <div id="bottomToolbar" class="clearfix">
                                <div class="other-tool">
                                    <dl class="refresh-data">
                                        <dt class="refresh-data-icon"></dt>
                                        <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                    </dl>
                                </div>

                                <!--翻页系统--{-->
                                <div class="container s_formPage">
                                    <#import "../../common/page.html" as pager>
                                        <@pager.pagination page=page url="${pageUrl}" map=param style="style1" />
                                </div>
                                <!--翻页系统--}-->
                            </div>
                            <!--底部工具栏--}-->

                            <script type="text/javascript">
                                var url='querySourceUser.html?search=true';
                                var xlsurl = 'querySourceUser.html?type=export';
                                function sousuo(){
                                    var sou = "";
                                    var username = $("#username").val();
                                    if (username!=""&&username!="请输入用户名"){
                                        sou += "&username="+username;
                                    }
                                    var realname = $("#realname").val();
                                    if(realname!=""&&realname!="请输入真实姓名"){
                                        sou += "&realname="+realname;
                                    }
                                    var email = $("#email").val();
                                    if(email!=""&&email!="请输入邮箱"){
                                        sou += "&email="+email;
                                    }
                                    var phone = $("#phone").val();
                                    if(phone!=""&&phone!="请输入手机"){
                                        sou += "&phone="+phone;
                                    }
                                    var startDate = $("#startDate").val();
                                    var endDate = $("#endDate").val();
                                    if (startDate!=null){
                                        sou += "&startDate="+startDate;
                                    }
                                    if (endDate!=null){
                                        sou += "&endDate="+endDate;
                                    }
                                    var sourceType = $("#sourceType").find(".open-selected").attr("data-value");
                                    if(sourceType!=null&&sourceType!=""&&sourceType!="undefine"){
                                        sou += "&sourceType="+sourceType;
                                    }
                                    var sourceFrom = $("#sourceFrom").find(".open-selected").attr("data-value");
                                    if(sourceFrom!=null&&sourceFrom!=""&&sourceFrom!="undefine"){
                                        sou += "&sourceFrom="+sourceFrom;
                                    }else{
                                        sou += "&sourceFrom="+$("#sourceFromStr").val();
                                    }
                                    var realStatus = $("#realStatus").find(".open-selected").attr("data-value");
                                    if(realStatus!=null&&realStatus!=""&&realStatus!="undefine"){
                                        sou += "&realStatus="+realStatus;
                                    }
                                    if (sou!=""){
                                        location.href=url+sou;
                                    }
                                }

                                function exportxls(){
                                    var num='${(page.total)?c}';
                                    num=num.replace(",","");
                                    if(num>30000){ //条数自己定义，但必须小于65536
                                        alert("数据过多，请选择指定的时间进行数据查询导出！"); //提示信息根据不同的内容注意修改下。
                                        return false;
                                    }
                                    var sou = "";
                                    var username = $("#username").val();
                                    if (username!=""&&username!="请输入用户名"){
                                        sou += "&username="+username;
                                    }
                                    var realname = $("#realname").val();
                                    if(realname!=""&&realname!="请输入真实姓名"){
                                        sou += "&realname="+realname;
                                    }
                                    var email = $("#email").val();
                                    if(email!=""&&email!="请输入邮箱"){
                                        sou += "&email="+email;
                                    }
                                    var phone = $("#phone").val();
                                    if(phone!=""&&phone!="请输入手机"){
                                        sou += "&phone="+phone;
                                    }
                                    var startDate = $("#startDate").val();
                                    var endDate = $("#endDate").val();
                                    if (startDate!=null){
                                        sou += "&startDate="+startDate;
                                    }
                                    if (endDate!=null){
                                        sou += "&endDate="+endDate;
                                    }
                                    var sourceType = $("#sourceType").find(".open-selected").attr("data-value");
                                    if(sourceType!=null&&sourceType!=""&&sourceType!="undefine"){
                                        sou += "&sourceType="+sourceType;
                                    }
                                    var sourceFrom = $("#sourceFrom").find(".open-selected").attr("data-value");
                                    if(sourceFrom!=null&&sourceFrom!=""&&sourceFrom!="undefine"){
                                        sou += "&sourceFrom="+sourceFrom;
                                    }else{
                                        sou += "&sourceFrom="+$("#sourceFromStr").val();
                                    }
                                    var realStatus = $("#realStatus").find(".open-selected").attr("data-value");
                                    if(realStatus!=null&&realStatus!=""&&realStatus!="undefine"){
                                        sou += "&realStatus="+realStatus;
                                    }
                                    if (sou!=""){
                                        location.href=xlsurl+sou;
                                    }
                                }

                            </script>
                        </div>
        </div>
    </div>
    <div class="mc-b">
        <#include "../foot.html">
    </div>
    <#include "../jsPage.html">

    </body>
</html>
